namespace DeleteOnTimeTool
{
	internal static class Program
	{
		/// <summary>
		///  The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			var args = Environment.GetCommandLineArgs();
			if (args.Any(a => string.Equals(a, "--silent", StringComparison.OrdinalIgnoreCase)))
			{
				var config = Services.ConfigService.Load();
				Services.LogService.WriteInfo(config, "静默执行开始");
				Services.DeleteService.Execute(config);
				return;
			}

			// To customize application configuration such as set high DPI settings or default font,
			// see https://aka.ms/applicationconfiguration.
			ApplicationConfiguration.Initialize();
			Application.Run(new mainForm());
		}
	}
}
